package cn.exrick.xboot.base.entity

import cn.exrick.xboot.core.base.XbootBaseEntity
import cn.exrick.xboot.core.base.XbootBaseEntityKt
import cn.exrick.xboot.core.common.utils.SnowFlakeUtil
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.hibernate.annotations.DynamicInsert
import org.hibernate.annotations.DynamicUpdate
import java.util.*
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table

/**
 * @author Fei
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "en_exam_confirm_check")
@TableName("en_exam_confirm_check")
@ApiModel(value = "考试监督员考试确认审核")

data class ExamConfirmCheck(

        @ApiModelProperty("员工正式考试记录id")
        var officialExamRecordId: String? = null,

        @ApiModelProperty("监管部门考试监督员id")
        var supervisionUserId: String? = null,

        @ApiModelProperty("是否确认")
        var confirmMessage: Boolean? = false,

        @ApiModelProperty("审核员")
        var checkUserId: String? = null
): XbootBaseEntityKt() {

    @Id
    @TableId
    override var id: String = SnowFlakeUtil.nextId().toString()

    companion object{
        private const val serialVersionUID = 1L
    }
}